import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 东莞呵呵
 * Date:2022-03-23
 * Time:21:40
 */
public class TestDemo {
    public static boolean is_prime(int n){
        for(int i=2;i<n;i++){
            if(n%i==0){
                return false;
            }
        }
        if(n==1){
            return false;
        }
        if(n==2){
            return true;
        }
        return true;
    }
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        int n=scanner.nextInt();
        if (is_prime(n) == true) {
            System.out.println(n+"是素数");
        } else{
            System.out.println(n+"不是素数");
        }
        scanner.close();
    }
}
